package com.dynamic.redis.config;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

/**
 * TODO
 *
 * @author 库琦
 * @version 1.0
 * @date 2022/6/14 14:33
 */
@ConfigurationProperties(prefix = RedisDataSourceProperties.PREFIX)
public class RedisDataSourceProperties {
    static final String PREFIX = "spring.redis";
    private Map<String, RedisProperties> datasource = new HashMap<>();

    public Map<String, RedisProperties> getDatasource() {
        return datasource;
    }

    public void setDatasource(Map<String, RedisProperties> datasource) {
        this.datasource = datasource;
    }




}
